-
Notifications
You must be signed in to change notification settings - Fork 113
feat: [IOCOM-2586] AAR Phase 2 tracking #7546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…p type in the action props
…ing logic to the Send Engagement screen
…nResultScreenContent
…-engagement-screen
…OperationResultScreenContent" This reverts commit bd9821f.
…idth prop type in the action props" This reverts commit f963ccc.
…ction props and update snapshots
…ScreenContent with WhatsNewScreenContent
| export const SendAARErrorScreen = () => { | ||
| const flowType = useIOSelector(currentAARFlowStateType); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use useOnFirstRender?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the fact that it is a custom hook with an inside ref and that it allows the developer to not include the necessary dependencies in the callback. Moreover, in case of a (wrong) re-rendering, it does not run again but if the component is unmounted and mounted again (due to parent inclusion), then it does run again, against the fact that it is called "useOnFirstRender"
# Conflicts: # ts/features/pn/aar/components/SendAARMessageDetailBottomSheet.tsx # ts/features/pn/aar/components/SendAARMessageDetailBottomSheetComponent.tsx # ts/features/pn/aar/components/__tests__/SendAARMessageDetailBottomSheet.test.tsx # ts/features/pn/screens/__test__/__snapshots__/MessageDetailsScreen.test.tsx.snap
Short description
This PR adds the tracking events for the AAR Phase 2.
List of changes proposed in this pull request
SEND_TEMPORARY_NOTIFICATION_OPENING_DISCLAIMER: screen view on ToSSEND_TEMPORARY_NOTIFICATION_OPENING_DISCLAIMER_ACCEPTED: accept on ToSSEND_TEMPORARY_NOTIFICATION_OPENING_DISCLAIMER_DISMISSED: denial on ToSSEND_TEMPORARY_NOTIFICATION_OPENING_NOT ALLOWED: screen view when user is not the recipientSEND_TEMPORARY_NOTIFICATION_OPENING_NOT_ALLOWED_MANDATE_INFO: tap on more info when user is not the recipientSEND_TEMPORARY_NOTIFICATION_OPENING_NOT_ALLOWED_DISMISSED: tap on close when user is not the recipientPN_UX_SUCCESS: propertiessend_userandopening_sourceaddedPN_NOTIFICATION_LOAD_SUCCESS: propertiessend_userandopening_sourceaddedPN_PAYMENT_STATUS: propertiessend_userandopening_sourceaddedPN_ATTACHMENT_OPENING: propertiessend_userandopening_sourceaddedPN_PAYMENT_START: propertiessend_userandopening_sourceaddedPN_SHOW_TIMELINE: propertiessend_userandopening_sourceaddedPN_SHOW_F24: propertiessend_userandopening_sourceaddedPN_TIMELINE_EXTERNAL: propertiessend_userandopening_sourceaddedSEND_TEMPORARY_NOTIFICATION_CLOSURE: screen view upon showing the bottom sheet, leaving the AAR notificationSEND_TEMPORARY_NOTIFICATION_CLOSURE_BACK: tap on "back to notification" in the bottom sheet aboveSEND_TEMPORARY_NOTIFICATION_CLOSURE_CONFIRM: tap on "close" in the bottom sheet aboveSEND_TEMPORARY_NOTIFICATION_CLOSURE_EXIT: tap on external link in the bottom sheet aboveSEND_AAR_ERROR_CLOSURE: tap on close in the error screenSEND_AAR_ERROR_DETAIL: tap on details in the error screenSEND_AAR_ERROR_DETAIL_HELP: tap on chat assistance in the error screenSEND_AAR_ERROR_DETAIL_CODE: tap on assistance code copy in the error screenHow to test
Use the io-dev-api-server to simulate every possible flow and check that every event is raised the right number of times, with proper parameters